cmake_minimum_required(VERSION 2.6)
project (Sudoku)

SET(CMAKE_CXX_FLAGS "-std=c++0x")
#add_definitions(-std=c++0x)

set(PROJECT_ROOT_DIR ./)
set(PROJECT_SOURCE_DIR ${PROJECT_ROOT_DIR}/src)
set(CMAKE_BINARY_DIR ${PROJECT_ROOT_DIR}/build)
set(PROJECT_INCLUDE_DIR ${PROJECT_ROOT_DIR}/include)
set(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR})

include_directories("${PROJECT_INCLUDE_DIR}")
include_directories("${PROJECT_SOURCE_DIR}")

#add cpp files
file(GLOB files ${PROJECT_SOURCE_DIR}/*.cpp)

foreach(file ${files})
	set(sourceFiles ${sourceFiles} ${file})
endforeach()

#add header files
file(GLOB files ${PROJECT_INCLUDE_DIR}/*.h)

foreach(file ${files})
	set(sourceFiles ${sourceFiles} ${file})
endforeach()

add_executable(rozp-sudoku ${sourceFiles})

